<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title><%- title %></title>
  <link href="/js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="/js/bootstrap/css/non-responsive.css" rel="stylesheet">
  <link href="/js/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
  <link href="/css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link href="/css/main.css" rel="stylesheet">
  <style>

  </style>
</head>
<body >
<div id="iframeContent">
  <form>
    <div class="form-group">
      <label for="exampleInputEmail1">Email address</label>
      <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
    </div>
    <div class="form-group">
      <label for="exampleInputPassword1">Password</label>
      <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
    </div>
    <div class="form-group">
      <label for="exampleInputFile">File input</label>
      <input type="file" id="exampleInputFile">
      <p class="help-block">Example block-level help text here.</p>
    </div>
    <div class="checkbox">
      <label>
        <input type="checkbox"> Check me out
      </label>
    </div>
    <button type="submit" class="btn btn-default">Submit</button>
    <buton type="button" onclick="hideBtn()">关闭</buton>
  </form>
</div>
</body>
<script src="/js/ieWarn.js"></script>
<script src="/js/jquery-1.12.0.min.js"></script>
<script src="/js/bootstrap/js/bootstrap.min.js"></script>
<script>
    function hideBtn(){
        window.parent.dialogClose();
    }
    jQuery(function() {
			$.ajaxSetup({
				headers: {
					'X-Requested-With': 'XMLHttpRequest'
				},
        error: function (res,body, err) {
//					res.responseJSON
          if(res.responseJSON) {
          	console.log(res.responseJSON)
          }
					console.log(res)
          console.log(body)
          console.log(err)
        }
			});
			$.get('/tool/test').done(function(res){
				console.log(res)
      })
    })

</script>
</html>